package cn.aifeix.pet.domain;

import cn.aifeix.basic.domain.BaseDomain;
import cn.aifeix.org.domain.Shop;
import cn.aifeix.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author aifeix
 * @since 2022-10-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Pet extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private String name;
    private BigDecimal saleprice;
    private String costprice;
    private String resources;
    /**
     * 状态：0下架 1上架
     */
    private Long state = 0L;
    /**
     * 类型id
     */
    private Long typeId;
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date onsaletime;
    private Date createtime = new Date();
    /**
     * 店铺Id 如果被领养店铺id为null
     */
    private Long shopId;
    /**
     * 如果被领养为领养用户id
     */
    private Long userId;
    private Long searchMasterMsgId;
    private Integer auditnum;
    private String note;

    private PetDetail detail;
    // 店铺
    private Shop shop;
    // 品种
    private PetType petType;
    // 用户
    private User user;

}
